
package org.japril.swing.jutil.logging2;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dialog;
import java.awt.Frame;

import javax.swing.JDialog;

@SuppressWarnings("serial")
public final class ControlLogSinkDialog extends JDialog 
{
  private final ControlLogSinkPanel2 m_clsp=new ControlLogSinkPanel2();
  
  public ControlLogSinkDialog(){ buildGui(); }
  
  public ControlLogSinkDialog(Dialog p){ super(p); buildGui(); }
  
  public ControlLogSinkDialog(Frame p){ super(p); buildGui(); }
  
  private void buildGui() 
  {
    Container c=getContentPane();
    c.setLayout(new BorderLayout());
    c.add(m_clsp, BorderLayout.CENTER);
    pack();
  }
  
  public void showDialog()
  {
    setVisible(true);
  }
  
}
